import request,{ Method } from '../utils/request'

/**
 * 获取微页面详情
 * @param id
 * @returns {*}
 */
export function getPageDetail(id) {
    return request.ajax({
        url: `/pages/${id}`,
        method: Method.GET
    })
}

/**
 * 获取首页数据
 * @returns {*}
 */
export function getIndexPage() {
    return request.ajax({
        url: `/pages/MOBILE/index`,
        method: Method.GET
    })
}

/**
 * 获取店铺首页数据
 * @returns {*}
 */
export function getShopIndexPage(shop_id) {
    return request.ajax({
        url: `/pages/MOBILE/${shop_id}/index`,
        method: Method.GET
    })
}

